<template>
	<!-- :bg-list="detailData.banners" -->
	<view class="main-wrapper">

		<!-- <main-wrapper with-bottom > -->

		<!-- <view class="main-photo">
			<van-image width="100%" height="700rpx" :src="image"></van-image>
		</view> -->
		<game-panel :isshow="true" :data="detailData"  @showRules="openexplainshow"/>
		<view class="page-head" :style="{top:safetop+'px'}" style="padding-left: 12px;padding-right: 12px;">
			<!-- <image class="arrow" src="/static/icons/nav-arrow.png" @click="goBack()" /> -->
			<uni-icons type="arrow-left" color="white" size="30" @click="goBack"></uni-icons>
			<section-title title="动力赏" />
		</view>
		<view style="padding-left: 12px;padding-right: 12px;padding-bottom: 250rpx;">
			<!-- <view class="share-area">
				<view class="share">
					<view style="position: relative;">
						<image class="share-img" src="/static/owo/dongli-share.png" />分享
						<button open-type="share" class="shareBtn">分享</button>
					</view>
					<view @click="openexplainshow">
						<image class="description-img" src="/static/owo/dongli-description.png" />说明
					</view>
				</view>
				<view class="winner-btn">
					<text v-if="tab === 'winner'" @click="viewPrize">查看奖品</text>
					<image @click="changeTab()" :src="winnerImage" />
				</view>
			</view> -->
			<view class="nav">
				<view class="txt" @click="viewPrize('prize')" :class="[tab === 'prize'?'select':'']">赏品
				</view>
				<view class="txt" @click="changeTab('winner')" :class="[tab === 'winner'?'select':'']">中奖记录
				</view>
			</view>
			<!-- <view class="package" @click="goToPackage()">
				<image src="/static/owo/dongli-package.png" />
				<view>车厢</view>
			</view> -->
			<view v-if="tab === 'prize'">
				<view class="prize">
					<view class="title">
						<image src="/static/dongli-chaoshen.png" />
						获得概率{{chaoshenpercent}}
					</view>
					<view class="prize-list">
						<view class="prize-item" v-for="item in chaoshenList" :key="item.id"
							@click="showDialogImage(item)">
							<view class="prize-img">
								<image :src="item.image" />
							</view>
							<view class="prize-title">{{ item.name }}</view>
							<view class="prize-price">¥{{ item.price }}</view>
						</view>
					</view>
				</view>
				<view class="prize">
					<view class="title">
						<image src="/static/dongli-ouhuang.png" />
						获得概率{{ouhuangpercent}}
					</view>
					<view class="prize-list">
						<view class="prize-item" v-for="item in ouhuangList" :key="item.id"
							@click="showDialogImage(item)">
							<view class="prize-img">
								<image :src="item.image" />
							</view>
							<view class="prize-title">{{ item.name }}</view>
							<view class="prize-price">¥{{ item.price }}</view>
						</view>
					</view>
				</view>
				<view class="prize">
					<view class="title">
						<image src="/static/dongli-yincang.png" />
						获得概率{{yincangpercent}}
					</view>
					<view class="prize-list">
						<view class="prize-item" v-for="item in yincangList" :key="item.id"
							@click="showDialogImage(item)">
							<view class="prize-img">
								<image :src="item.image" />
							</view>
							<view class="prize-title">{{ item.name }}</view>
							<view class="prize-price">¥{{item.price }}</view>
						</view>
					</view>
				</view>
				<view class="prize">
					<view class="title">
						<image src="/static/dongli-jichu.png" />
						获得概率{{jichupercent}}
					</view>
					<view class="prize-list">
						<view class="prize-item" v-for="item in jichuList" :key="item.id"
							@click="showDialogImage(item)">
							<view class="prize-img">
								<image :src="item.image" />
							</view>
							<view class="prize-title">{{ item.name }}</view>
							<view class="prize-price">¥{{ item.price }}</view>
						</view>
					</view>
				</view>
			</view>

			<view class="winner" v-if="tab === 'winner'">
				<view>
					<!-- 超神款 -->
					<view class="winner-item" v-for="(item, index) in chaoshenRecord" :key="index">
						<view class="avatar">
							<image :src="item.avatar" />
						</view>
						<view class="winner-detail">
							<view>
								<view>{{ item.user_name }}</view>
								<image src="/static/owo/dongli-chaoshen.png" />
							</view>
							<view>
								<vieww class="time">{{ item.created_at }}</vieww>
								<view class="prize-name">{{ item.name }}</view>
							</view>
						</view>
						<view class="number">第{{item.counter}}发</view>
						<view v-if="index !== (recordData['超神款'].length - 1) && index === 0" class="tag"
							@click="launch('超神款')">
							展开
							<image src="/static/owo/dongli-zhankai.png" mode="" />
						</view>
						<view v-if="index === (chaoshenRecord.length - 1) && index !== 0" class="tag"
							@click="retract('超神款')">
							收起
							<image src="/static/owo/dongli-shouqi.png" mode="" />
						</view>
					</view>
				</view>

				<view>
					<!-- 欧皇款 -->
					<view class="winner-item" v-for="(item, index) in ouhuangRecord" :key="index">
						<view class="avatar">
							<image :src="item.avatar" />
						</view>
						<view class="winner-detail">
							<view>
								<view>{{ item.user_name }}</view>
								<image src="/static/owo/dongli-ouhuang.png" />
							</view>
							<view>
								<view class="time">{{ item.created_at }}</view>
								<view class="prize-name">{{ item.name }}</view>
							</view>
						</view>
						<view class="number">第{{item.counter}}发</view>
						<view v-if="index !== (recordData['欧皇款'].length - 1) && index === 0" class="tag"
							@click="launch('欧皇款')">
							展开
							<image src="/static/owo/dongli-zhankai.png" mode="" />
						</view>
						<view v-if="index === (ouhuangRecord.length - 1) && index !== 0" class="tag"
							@click="retract('欧皇款')">
							收起
							<image src="/static/owo/dongli-shouqi.png" mode="" />
						</view>
					</view>
				</view>

				<view>
					<!-- 隐藏款 -->
					<view class="winner-item" v-for="(item, index) in yincangRecord" :key="index">
						<view class="avatar">
							<image :src="item.avatar" />
						</view>
						<view class="winner-detail">
							<view>
								<view>{{ item.user_name }}</view>
								<image src="/static/owo/wuxianshang-yincang.png" />
							</view>
							<view>
								<view class="time">{{ item.created_at }}</view>
								<view class="prize-name">{{ item.name }}</view>
							</view>
						</view>
						<view class="number">第{{item.counter}}发</view>
						<view v-if="index !== (recordData['隐藏款'].length - 1) && index === 0" class="tag"
							@click="launch('隐藏款')">
							展开
							<image src="/static/owo/dongli-zhankai.png" mode="" />
						</view>
						<view v-if="index === (yincangRecord.length - 1) && index !== 0" class="tag"
							@click="retract('隐藏款')">
							收起
							<image src="/static/owo/dongli-shouqi.png" mode="" />
						</view>
					</view>
				</view>

				<view>
					<!-- 基础款 -->
					<view class="winner-item" v-for="(item, index) in jichuRecord" :key="index">
						<view class="avatar">
							<image :src="item.avatar" />
						</view>
						<view class="winner-detail">
							<view>
								<view>{{ item.user_name }}</view>
								<image src="/static/owo/dongli-jichu.png" />
							</view>
							<view>
								<view class="time">{{ item.created_at }}</view>
								<view class="prize-name">{{ item.name }}</view>
							</view>
						</view>
						<view class="number">第{{item.counter}}发</view>
						<view v-if="index !== (recordData['基础款'].length - 1) && index === 0" class="tag"
							@click="launch('基础款')">
							展开
							<image src="/static/owo/dongli-zhankai.png" mode="" />
						</view>
						<view v-if="index === (jichuRecord.length - 1) && index !== 0" class="tag"
							@click="retract('基础款')">
							收起
							<image src="/static/owo/dongli-shouqi.png" mode="" />
						</view>
					</view>
				</view>
			</view>
		</view>
		<game-recharge class="bottom-panel" :title="detailData.name" :prices="rechargePrices" :gameIndex="currentIndex"
			:gameId="detailData.id" :gameType="detailData.type" :image="detailData.main_photo" :price="detailData.price"
			:ifFull="0" @success="refresh" />
		<!-- <donglishang-recharge ref="RechargeRef" class="bottom-panel" :title="detailData.name" :prices="rechargePrices"
			:gameId="detailData.id" gameType="动力赏" :image="detailData.main_photo" :price="detailData.price" :ifFull="0"
			@success="loadRecord()" /> -->
		<van-dialog use-slot :show="isCouponModalVisible" :show-confirm-button="false" width="312">
			<prize-dialog-content :image="dialogItem.image" :name="dialogItem.name" :price="dialogItem.price"
				v-on:close="closeCouponModal" />
		</van-dialog>
		<van-popup :show="explainshow" custom-style="background-color: rgba(0, 0, 0, 0)">
			<view class="guizebg">
				<view class="guizeitem">
					<image class="guizeitemimage" src="/static/owo/text-board-bg.png" mode="widthFix"></image>
					<view class="plabel">
						<view class="ptitle"></view>
						<view style="height: 500rpx;">
							<scroll-view scroll-y="true" style="padding-right: 10rpx;height: 500rpx;">
								<text class="pcontent" >
									{{detailData.instruction}}
								</text>
							</scroll-view>
						</view>
					</view>
				</view>
				<image src="../../static/pay-close.png" class="close" @click="closeexplainshow"></image>
			</view>
		</van-popup>
	</view>
	<!-- </main-wrapper> -->
</template>

<script lang="ts">
	export default {
		name: 'DongLiShang'
	}
</script>

<script lang="ts" setup>
	import GamePanel from './shared/game-panel'
	import GameRecharge from './shared/game-recharge1'
	import moment from 'moment'
	import SectionTitle from '@/wxcomponents/section-title'
	import ListItem from '@/wxcomponents/list-item'
	import PrizeDialogContent from '@/wxcomponents/prize-dialog-content'
	import MainWrapper from '@/wxcomponents/main-wrapper'
	import RecordContent from './shared/record-content'
	import { list, loadDetail, listRecords } from "@/api/donglishang";
	import { ref, computed } from 'vue'
	import { onLoad, onShow, onPullDownRefresh } from "@dcloudio/uni-app";
	let sys = uni.getSystemInfoSync();
	const windowWidth = ref(sys.windowWidth);
	const tab = ref('prize')
	const isCouponModalVisible = ref(false)
	let gameId = ref(0)
	const RechargeRef = ref(null)
	const detailData = ref({})
	const dialogItem = ref({})
	let showBanners = []
	let rechargePrices = ref([])
	const recordList = ref([])
	let payBoxShow = false
	let chaoshenList = ref([])
	let ouhuangList = ref([])
	let yincangList = ref([])
	let jichuList = ref([])
	let recordData = ref({})
	let chaoshenRecord = ref([])
	let ouhuangRecord = ref([])
	let yincangRecord = ref([])
	let jichuRecord = ref([])
	let explainshow = ref(true)

	// function sharegame() {
	// 	 wx.showShareMenu({
	// 		withShareTicket: true,
	// 		menus: ['shareAppMessage', 'shareTimeline']
	// 	  });
	// }

	function buy(count) {
		RechargeRef.value.showPayDialog(count)
	}
	function openexplainshow() {
		explainshow.value = true;
	}
	function closeexplainshow() {
		explainshow.value = false;
	}
	function goBack() {
		uni.switchTab({
			url: '/pages/index/index'
		})
	}

	function showDialogImage(item) {
		dialogItem.value = {
			image: item.image,
			name: item.name,
			price: item.price
		}
		isCouponModalVisible.value = true
	}

	function closeCouponModal() {
		isCouponModalVisible.value = false;
	}
	let chaoshenpercent = ref(0)
	let yincangpercent = ref(0)
	let ouhuangpercent = ref(0)
	let jichupercent = ref(0)
	// 列出动力赏详情
	async function getDetail() {
		let params = {
			game_id: gameId.value
		}
		let { code, data } = await loadDetail(params)
		const probability = data.probability || {}
		chaoshenpercent.value = probability['超神款'] || ''
		ouhuangpercent.value = probability['欧皇款'] || ''
		yincangpercent.value = probability['隐藏款'] || ''
		jichupercent.value = probability['基础款'] || ''

		for (let i = 0; i < data.items.length; i++) {
			data.items[i].price = (data.items[i].price / 100).toFixed(2)
			if (data.items[i].type === "超神款") {
				chaoshenList.value.push(data.items[i])
			}
			if (data.items[i].type === "欧皇款") {
				ouhuangList.value.push(data.items[i])
			}
			if (data.items[i].type === "隐藏款") {
				yincangList.value.push(data.items[i])
			}
			if (data.items[i].type === "基础款") {
				jichuList.value.push(data.items[i])
			}
		}
		const buyCounts = [1, 5, 10]
		const newPrices = []
		for (let i = 0; i < buyCounts.length; i++) {
			const buyPrice = data['price'] * buyCounts[i]
			newPrices.push({
				'price': data['price'],
				'show_price': (buyPrice / 100).toFixed(2),
				'class': 'recharge-' + buyCounts[i],
				'count': buyCounts[i]
			})
		}

		const banners = String(data.banner).split(';')
		data.banners = banners

		rechargePrices.value = newPrices
		detailData.value = data
	}

	// 列出中奖名单
	async function loadRecord() {
		let params = {
			game_id: gameId.value
		}
		const { data } = await listRecords(params)
		const records = data.records
		if (records['超神款']) {
			records['超神款'].forEach(item => {
				const timeObj = moment(item['created_at']);
				item['created_at'] = timeObj.format('YYYY-MM-DD HH:mm:ss')
			});
			chaoshenRecord.value = []
			chaoshenRecord.value.push(records['超神款'][0])
		} else {
			records['超神款'] = []
		}
		if (records['欧皇款']) {
			records['欧皇款'].forEach(item => {
				const timeObj = moment(item['created_at']);
				item['created_at'] = timeObj.format('YYYY-MM-DD HH:mm:ss')
			});
			ouhuangRecord.value = []
			ouhuangRecord.value.push(records['欧皇款'][0])
		} else {
			records['欧皇款'] = []
		}
		if (records['隐藏款']) {
			records['隐藏款'].forEach(item => {
				const timeObj = moment(item['created_at']);
				item['created_at'] = timeObj.format('YYYY-MM-DD HH:mm:ss')
			});
			yincangRecord.value = []
			yincangRecord.value.push(records['隐藏款'][0])
		} else {
			records['隐藏款'] = []
		}
		if (records['基础款']) {
			records['基础款'].forEach(item => {
				const timeObj = moment(item['created_at']);
				item['created_at'] = timeObj.format('YYYY-MM-DD HH:mm:ss')
			});
			jichuRecord.value = []
			jichuRecord.value.push(records['基础款'][0])
		} else {
			records['基础款'] = []
		}
		recordData.value = data.records
	}

	// 展开中奖记录
	function launch(type) {
		if (type === "超神款") {
			if (chaoshenRecord.value.length > 1) {
				let arr = [recordData.value['超神款'][0]]
				chaoshenRecord.value = arr
			} else {
				chaoshenRecord.value = recordData.value['超神款']
			}
		}
		if (type === "欧皇款") {
			if (ouhuangRecord.value.length > 1) {
				let arr = [recordData.value['欧皇款'][0]]
				ouhuangRecord.value = arr
			} else {
				ouhuangRecord.value = recordData.value['超神款']
			}
			// ouhuangRecord.value = recordData.value['欧皇款']
		}
		if (type === "隐藏款") {
			if (yincangRecord.value.length > 1) {
				let arr = [recordData.value['隐藏款'][0]]
				yincangRecord.value = arr
			} else {
				yincangRecord.value = recordData.value['隐藏款']
			}
			// yincangRecord.value = recordData.value['隐藏款']
		}
		if (type === "基础款") {
			if (jichuRecord.value.length > 1) {
				let arr = [recordData.value['基础款'][0]]
				jichuRecord.value = arr
			} else {
				jichuRecord.value = recordData.value['基础款']
			}
			// jichuRecord.value = recordData.value['基础款']
		}
	}

	// 收起中奖记录
	function retract(type) {
		if (type === "超神款") {
			chaoshenRecord.value = []
			chaoshenRecord.value.push(recordData.value['超神款'][0])
		}
		if (type === "欧皇款") {
			ouhuangRecord.value = []
			ouhuangRecord.value.push(recordData.value['欧皇款'][0])
		}
		if (type === "隐藏款") {
			yincangRecord.value = []
			yincangRecord.value.push(recordData.value['隐藏款'][0])
		}
		if (type === "基础款") {
			jichuRecord.value = []
			jichuRecord.value.push(recordData.value['基础款'][0])
		}
	}

	function goToPackage() {
		uni.navigateTo({
			url: '/pages/package/Cindex'
		})
	}

	// 查看奖品
	function viewPrize() {
		tab.value = 'prize'
	}
	function changeTab() {
		if (tab.value === 'prize') {
			tab.value = 'winner'
			loadRecord()
			return
		}
		// 全部预览
		if (tab.value === 'winner') {
			let isAll1 = chaoshenRecord.value.length === recordData.value['超神款'].length
			let isAll2 = ouhuangRecord.value.length === recordData.value['欧皇款'].length
			let isAll3 = yincangRecord.value.length === recordData.value['隐藏款'].length
			let isAll4 = jichuRecord.value.length === recordData.value['基础款'].length
			if (isAll1 && isAll2 && isAll3 && isAll4) {
				chaoshenRecord.value = recordData.value['超神款'][0] ? [recordData.value['超神款'][0]] : []
				ouhuangRecord.value = recordData.value['欧皇款'][0] ? [recordData.value['欧皇款'][0]] : []
				yincangRecord.value = recordData.value['隐藏款'][0] ? [recordData.value['隐藏款'][0]] : []
				jichuRecord.value = recordData.value['基础款'][0] ? [recordData.value['基础款'][0]] : []
				return
			}
			chaoshenRecord.value = recordData.value['超神款']
			ouhuangRecord.value = recordData.value['欧皇款']
			yincangRecord.value = recordData.value['隐藏款']
			jichuRecord.value = recordData.value['基础款']
		}
	}
	let safetop = ref(0)
	function getsafetop() {
		uni.getSystemInfo({
			success: function (res) {
				// res.safeAreaInsets 包含了 safeAreaInsets.top 和 safeAreaInsets.bottom
				safetop.value = res.safeAreaInsets.top;
			}
		});
	}
	onLoad(async (options) => {
		getsafetop()
		const id = options.id || 0
		if (!id) {
			uni.showToast({
				title: 'id参数错误',
				icon: 'none'
			})
			return
		}
		gameId.value = id

		await getDetail()
		uni.$mpShare = shareData.value // 修改uni.$mpShare的值

	});
	onPullDownRefresh(async () => {
		await getDetail()
		uni.stopPullDownRefresh()
	})
	onShow(() => {
		uni.$mpShare = shareData.value // 修改uni.$mpShare的值
	})
	const shareData = computed(() => { // 分享的数据
		return {
			title: detailData.value.name,
			imageUrl: detailData.value.main_photo
		}
	})
</script>


<style lang="scss">
	@import 'src/static/scss/maincommon';
	.nav {
		display: flex;
		justify-content: flex-start;
		margin: 20rpx 0;

		.txt {
			display: inline-block;
			width: 132rpx;
			height: 44rpx;
			line-height: 44rpx;
			text-align: center;
			position: relative;
			color: #ffffff;
			font-size: 28rpx;
			margin-right: 20rpx;
		}

		.select {
			background-image: url("/static/owo/navselect.png");
			background-position: 0 0;
			background-repeat: no-repeat;
			background-size: 100%;
			color: #FFDD86;
		}
	}

	.arrow {
		width: 40rpx;
		height: 40rpx;
		vertical-align: middle;
	}

	.guizebg {
		width: 100%;
	}

	.guizeitem {
		width: 500rpx;
		position: relative;
	}

	.guizeitemimage {
		width: 100%;
	}

	.plabel {
		position: absolute;
		left: 20rpx;
		top: 20rpx;
		padding: 0 20rpx;
	}

	.ptitle {
		height: 80rpx;
		line-height: 80rpx;
		font-size: 36rpx;
		color: #ffffff;
	}

	.pcontent {
		color: #ffffff;
		line-height: 32rpx;
		font-size: 26rpx;
		margin-bottom: 6rpx;
	}

	.close {
		position: absolute;
		right: 40rpx;
		top: 20rpx;
		width: 48rpx;
		height: 48rpx;
	}

	.page-head {
		position: fixed;
		display: flex;
		gap: 10px;
		width: 150px;
		align-items: center;
		// line-height: 88px;
		z-index: 100;
	}

	.share-area {
		display: flex;
		justify-content: space-between;
		color: #FFF;
		margin: 30rpx 0;

		.share {
			display: flex;

			view {
				margin-right: 30rpx;
			}

			image {
				vertical-align: middle;
			}

			.share-img {
				height: 40rpx;
				width: 50rpx;
			}

			.description-img {
				height: 40rpx;
				width: 50rpx;
			}
		}

		.winner-btn {
			text {
				display: inline-block;
				margin-right: 20rpx;
				font-size: 20rpx;
				line-height: 40rpx;
			}

			image {
				height: 40rpx;
				width: 120rpx;
				vertical-align: middle;
			}
		}
	}

	.package {
		position: fixed;
		right: 30rpx;
		bottom: 350rpx;
		color: #FFF;
		text-align: center;
		z-index: 100;

		image {
			width: 100rpx;
			height: 100rpx;
		}
	}

	.prize {
		margin-top: 30rpx;
		color: #FFF;
		font-size: 22rpx;
		line-height: 40rpx;

		.title {
			image {
				width: 120rpx;
				height: 50rpx;
				vertical-align: bottom;
			}
		}

		.prize-list {
			margin-top: 30rpx;
			display: flex;
			overflow: scroll;

			.prize-item {
				margin: 0 20rpx;

				.prize-img {
					width: 150rpx;
					height: 156rpx;
					padding: 20rpx;
					background-image: url("~@/static/owo/product-item-bg.png");
					background-size: contain;
					background-repeat: no-repeat;

					image {
						width: 150rpx;
						height: 150rpx;
					}
				}

				.prize-title {
					width: 190rpx;
					white-space: nowrap;
					overflow: hidden;
					text-overflow: ellipsis;
				}
			}
		}
	}

	.winner {
		color: #FFF;
		margin-top: 30rpx;
		font-size: 22rpx;

		.winner-item {
			margin-top: 5rpx;
			padding: 40rpx;
			box-sizing: border-box;
			display: flex;
			justify-content: space-between;
			width: 100%;
			height: 142rpx;
			position: relative;
			background-image: url("~@/static/owo/dongli-winnerbg.png");
			background-size: contain;
			background-repeat: no-repeat;

			.avatar {
				height: 60rpx;
				width: 60rpx;
				border: 1px solid #FFF;
				border-radius: 50%;

				image {
					width: 60rpx;
					height: 60rpx;
					border-radius: 50%;
				}
			}

			.winner-detail {
				flex: 1;

				view {
					display: flex;
					justify-content: space-between;
					margin-left: 20rpx;

					image {
						width: 100rpx;
						height: 40rpx;
					}

					.time {
						width: 200rpx;
						font-size: 18rpx;
						color: #ffffff;
					}

					.prize-name {
						max-width: 300rpx;
						white-space: nowrap;
						overflow: hidden;
						text-overflow: ellipsis;
						font-size: 18rpx;
						color: #ffffff;
					}
				}
			}

			.number {
				position: absolute;
				top: 15rpx;
				left: 0;
				width: 80rpx;
				height: 30rpx;
				opacity: 1;
				background: #FFF2B5;
				font-size: 16rpx;
				text-align: center;
				line-height: 30rpx;
				color: #CB7621;
			}

			.tag {
				padding: 5rpx 10rpx;
				position: absolute;
				left: 50%;
				transform: translateX(-50%);
				bottom: 0;
				// background: linear-gradient(90deg, #FDE29B 0%, #FFFFD0 100%);
				font-size: 16rpx;
				color: #FFDD86;

				image {
					width: 10rpx;
					height: 10rpx;
					vertical-align: middle;
				}
			}
		}
	}

	.bottom-panel {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 110;
	}

	.shareBtn {
		width: 100%;
		height: 100%;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		opacity: 0;
	}

	.picker-meta-box {
		margin-top: -190rpx;

		display: flex;
		flex-direction: column;
		justify-content: center;
		z-index: 10;
	}

	.picker-meta {
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;

		.meta-text {
			padding-left: 20rpx;
		}
	}

	.picker-btn-box {
		margin-top: 30rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		z-index: 10;

		.picker-btn {
			width: 150rpx;
			height: 150rpx;
			font-size: 36rpx;
			font-weight: bold;
			display: flex;
			justify-content: center;
			align-items: center;
			background: url("/static/icons/z-meta/z-picker-btn.png") no-repeat;
			background-size: contain;

			.white-content {
				color: #ffffff;
				font-size: 24rpx;
			}
		}
	}

	.videobg {
		width: 100%;
		controls: none;
	}

	.main-wrapper {
		/* width: 100%; */
		width: 750rpx;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		// padding-left: 12px;
		// padding-right: 12px;
		padding-bottom: 20px;
		box-sizing: border-box;
		// padding-top: 80px;
		position: relative;
	}
</style>